package com.yellow.courierservice.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("delivery_areas")
public class DeliveryArea {

    @TableId(value = "area_id", type = IdType.AUTO)
    private Integer areaId;

    @TableField("courier_id")
    private Integer courierId;

    @TableField("area_name")
    private String areaName;

    @TableField("zip_code")
    private String zipCode;
}
